package com.web.base.open.util;


import com.web.base.open.message.RoleAccountRequest;
import com.web.base.open.model.RoleAccount;

/**
 * 开放平台角色-帐号转换器
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年02月27日
 */
public class RoleAccountConvertor
{
	private RoleAccountConvertor()
	{
	}
	
	public static RoleAccount toRoleAccount(RoleAccountRequest request)
	{
		if (request == null)
			return null;
		
		RoleAccount roleAccount = new RoleAccount();
		roleAccount.setRoleId(request.getRoleId());
		roleAccount.setAccountId(request.getAccountId());
		roleAccount.setRoleIds(request.getRoleIds());
		return roleAccount;
	}
	
}
